/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pencarian;
import java.util.ArrayList;
/**
 *
 * @author hans
 */
public class Vendor {
    private char Name;
    private ArrayList<Integer> listMesin;
    public Vendor(char nama, ArrayList<Integer> mesin){
        Name = nama;
        listMesin = new ArrayList<Integer>(mesin);
    }
    public char getName(){
        return Name;
    }
    public ArrayList<Integer> getlistMesin(){
        return listMesin;
    }
    public boolean isAvailable(int M){
        return listMesin.contains(M);
    }
}
